home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20000217-20000824
/
000037_news@columbia.edu _Tue Feb 22 10:10:24 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2000-08-23
|
1KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA12015
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 22 Feb 2000 10:10:24 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id JAA13755
for kermit.misc@watsun.cc.columbia.edu; Tue, 22 Feb 2000 09:50:03 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: Peter Easthope <peter_easthope@gulfnet.pinc.com>
Subject: Array name passed to macro as argument?
Date: Tue, 22 Feb 2000 14:35:01 GMT
Organization: GulfNet
Message-ID: <88u6ql$vmg$1@nnrp1.deja.com>
To: kermit.misc@columbia.edu
; Can the name of an array be passed to a macro via an
; argument? This message can be interpreted as an example
; but the syntax fails. Any suggestions?
; Thanks, peter_easthope@gulfnet.pinc.com
; ================================================
; pass the name of an array to Test as an argument.
def Test {
echo {\%1[1]}
echo {\%1[2]}
}
declare \&d[2]
def \&d[1] {Sea}
def \&d[2] {urchin}
echo {\&d[1]}
echo {\&d[2]}
echo {Now try passing the array name to Test.}
Test \&d
Sent via Deja.com http://www.deja.com/
Before you buy.